import request from '@/utils/request'
// 分组列表
// export function getMarketinGroupgList(data: any) {
//   return request({
//     url: '/scrm-api/console/market/rule/is-sms-service',
//     method: 'post',
//     data
//   })
// }
// 是否开启短信服务
export function getIsSmsService(data: any, flag: boolean = false) {
  return request({
    url: "/scrm-api/console/market/rule/is-sms-service",
    method: "POST",
    params: data,
    noNeedLoading: flag
  })
}
// 营销规则创建&编辑
export function saveMarketRule(data: any) {
  return request({
    url: "/scrm-api/console/market/rule/put",
    method: "POST",
     data
  })
}
// 营销规则详情
export function getRuleDetails(data: any, flag: boolean = false) {
  return request({
    url: "/scrm-api/console/market/rule/detail",
    method: "GET",
    params: data,
    noNeedLoading: flag
  })
}
// 获取用户行为
export function getPrevBehavior(data: any, flag: boolean = false) {
  return request({
    url: "/scrm-api/console/market/rule/prev-behavior",
    method: "POST",
     data,
     noNeedLoading: flag
  })
}

// 获取用户下一个行为
export function getNextBehavior(data: any, flag: boolean = false) {
  return request({
    url: "/scrm-api/console/market/rule/next-behavior",
    method: "POST",
     data,
     noNeedLoading: flag
  })
}
